import Vue from 'vue'
import App from './App'
import router from './router'

import iView from 'iview';
import 'iview/dist/styles/iview.css';
import '@/assets/styles/global.scss';
import  store from './store/store'

import ECharts from 'vue-echarts/components/ECharts.vue'
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: '5N4TH0x1y7hkrrkqvnxw2MmiGQB4atQ1'
});
Vue.component('v-chart', ECharts);
Vue.use(iView); //iview ui框架
// Vue.filter('toDateString', function (date) {
//   console.log(date);
//   let d  = new Date(date);
//   return d.toLocaleString();
// });

new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
});

